package com.bdmc.common.utils.wechat;

import cn.hutool.json.JSONUtil;

/**
 * @description: 微信手机号信息解密后的对象
 * @author: wrt
 */
public class WeixinPhoneDecryptInfo {
    private String phoneNumber;
    private String purePhoneNumber;
    private int countryCode;
    private String watermark;
    private WeixinWaterMark weixinWaterMark;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPurePhoneNumber() {
        return purePhoneNumber;
    }

    public void setPurePhoneNumber(String purePhoneNumber) {
        this.purePhoneNumber = purePhoneNumber;
    }

    public int getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(int countryCode) {
        this.countryCode = countryCode;
    }

    public String getWatermark() {
        return watermark;
    }

    public void setWatermark(String watermark) {
        this.watermark = watermark;
        this.weixinWaterMark = JSONUtil.toBean(this.watermark, WeixinWaterMark.class);
    }

    public WeixinWaterMark getWeixinWaterMark() {
        return weixinWaterMark;
    }

    @Override
    public String toString() {
        return "WeixinPhoneDecryptInfo{" + "phoneNumber='" + phoneNumber + '\'' + ", purePhoneNumber='"
                + purePhoneNumber + '\'' + ", countryCode=" + countryCode + ", appid=" + weixinWaterMark.getAppid()
                + ", timestamp=" + weixinWaterMark.getTimestamp() + '}';
    }
}
